import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;

public class test 
{
    public static void main(String args[]) throws IOException {
    	Process p = Runtime.getRuntime().exec("netsh wlan show networks mode=Bssid");
    	BufferedReader in = new BufferedReader(new InputStreamReader(p.getInputStream()));  
    	String line = null;  
    	while ((line = in.readLine()) != null) {  
    		System.out.println(line);  
    	}  
     }
}